package com.gs.xbinfomytest.entity.dsl;

import com.gitee.hengboy.mybatis.enhance.dsl.expression.ColumnExpression;
import com.gitee.hengboy.mybatis.enhance.dsl.expression.TableExpression;
import com.gs.xbinfomytest.entity.SysLogininfor;

/**
 * 系统访问记录
 * @author ApiBoot Mybatis Enhance Codegen
 */
public class DSysLogininfor extends TableExpression<SysLogininfor> {

    public DSysLogininfor(String root) {
        super(root);
    }

    public static DSysLogininfor DSL() {
        return new DSysLogininfor("sys_logininfor");
    }

    /**
     * 访问ID
     */
    public ColumnExpression infoId = new ColumnExpression("info_id", this);
    /**
     * 登录账号
     */
    public ColumnExpression loginName = new ColumnExpression("login_name", this);
    /**
     * 登录IP地址
     */
    public ColumnExpression ipaddr = new ColumnExpression("ipaddr", this);
    /**
     * 登录地点
     */
    public ColumnExpression loginLocation = new ColumnExpression("login_location", this);
    /**
     * 浏览器类型
     */
    public ColumnExpression browser = new ColumnExpression("browser", this);
    /**
     * 操作系统
     */
    public ColumnExpression os = new ColumnExpression("os", this);
    /**
     * 登录状态（0成功 1失败）
     */
    public ColumnExpression status = new ColumnExpression("status", this);
    /**
     * 提示消息
     */
    public ColumnExpression msg = new ColumnExpression("msg", this);
    /**
     * 访问时间
     */
    public ColumnExpression loginTime = new ColumnExpression("login_time", this);
    @Override
    public ColumnExpression[] getColumns() {
        return new ColumnExpression[]{infoId, loginName, ipaddr, loginLocation, browser, os, status, msg, loginTime};
    }

}

